package com.aaa.rent.controller;

import com.aaa.rent.service.CarService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author JYH
 * @version 1.0
 * @date 2023/3/14 16:21
 */
@Api(value = "/car", tags = {"车辆控制"})
@RestController
@RequestMapping("/car")
public class CarController {
    @Autowired
    private CarService carService;

    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", dataType = "int", name = "id", value = "", required = true)
    })
    @ApiOperation(value = "", notes = "")
    @RequestMapping("/updateState")
    public Integer updateState(Integer id){
        return carService.updateState(id);
    }
}
